<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .slide {
      width: 100px;
      height: 100px;
      background: skyblue;
      animation: move 5s linear infinite;
    }
    @keyframes move {
      25% {
        transform: translate(500px, 0);
      }
      50% {
        transform: translate(500px, 500px);
      }
      75% {
        transform: translate(0, 500px);
      }
      100% {
        transform: translate(0);
      }
    }
  </style>
</head>
<body>
  <!-- 使用@keyframes和animation实现一个元素先水平向右移动500px，然后向下移动500px，然后向左移动500px，最后向上500px回到原位，5S完成动画并一直重复 -->
  <div class="slide"></div>
</body>
</html>